import request from '@/utils/request'

//加入购物车
export const insertCartApi = ({ skuId, count }) => {
  return request.post('/member/cart', { skuId, count })
}
//获取购物车列表
export const findNewCartListApi = () => {
  return request.get('/member/cart')
}
//根据ids删除
export const delCartApi = (ids) => {
  console.log(ids)
  return request.delete('/member/cart', { data: { ids } })
}
//合并购物车
export const mergeCartApi = (data) => {
  return request.post('/member/cart/merge', data)
}
